package com.term.util.converter.type;


import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Component;

/**
 * Created by chenGang on 2017/1/10.
 */
@Component(value = "Json_To_String_Converter")
public class Json2StringConverter extends TypeConverter<JSON,String> {
    @Override
    public String convert(JSON val, Object... var2) {
        return val == null ? "" : val.toJSONString();
    }
//    @Override
//    public String convert(JSON val) {
//        return val == null ? "" : val.toJSONString();
//    }
}
